bitkeeper revision 1.1359 (4267fb77Hyv3hRzHLAvCoA2BMyz59A)
authormaf46@burn.cl.cam.ac.uk <maf46@burn.cl.cam.ac.uk>
Thu, 21 Apr 2005 19:13:59 +0000 (19:13 +0000)
committermaf46@burn.cl.cam.ac.uk <maf46@burn.cl.cam.ac.uk>
Thu, 21 Apr 2005 19:13:59 +0000 (19:13 +0000)
Fix bug introduced in the shadow code with the new page table entry macros.

Signed-off-by: michael.fetterman@cl.cam.ac.uk
xen/arch/x86/shadow.c

index 68ef1bb5ae7e775184942754897764a3d4b47feb..253eab50437eebfb41985189d744634cf01a76a3 100644 (file)
@@ -2387,7 +2387,7 @@ void __shadow_sync_all(struct domain *d)
         l1_pgentry_t *ppte = map_domain_mem(entry->writable_pl1e);
         l1_pgentry_t opte = *ppte;
         l1_pgentry_t npte = opte;
-        l1e_remove_flags(&opte, _PAGE_RW);
+        l1e_remove_flags(&npte, _PAGE_RW);
 
         if ( (l1e_get_flags(npte) & _PAGE_PRESENT) &&
              !shadow_get_page_from_l1e(npte, d) )